package com.ruoyi.system.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

public class LargeScreenDto {

    @Data
    public static class Query{
        @NotNull(message = "开始时间不能为空")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty("开始时间")
        private Date startTime;
        @NotNull(message = "结束时间不能为空")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty("结束时间")
        private Date endTime;
    }

    @Data
    @ApiModel("AmsHomeDto - QueryPatient")
    public static class QueryPatient{
        @NotNull
        @ApiModelProperty("统计方式 0:周 1:月 2:季 3:年")
        private Integer timeType = 0;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date startTime;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date endTime;

    }

}
